package com.wzapp.sitposture.eshop.repository;

import com.wzapp.sitposture.eshop.entity.Order;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

@RepositoryRestResource(exported = false)
public interface OrderRepository extends JpaRepository<Order, String> {


    Order findTop1ByUserIdAndStatus(String userId,Integer status);
}
